/*
 * @Description:
 * @Author: Haor
 * @Date: 2022-04-01 23:20:36
 * @LastEditTime: 2022-04-16 23:26:12
 * @LastEditors: Haor
 */
import { Module } from '@nestjs/common'
import { TypeOrmModule } from '@nestjs/typeorm'
import { UserService } from './user.service'
import { UserController } from './user.controller'
import { User } from 'src/entities/user.entity'

@Module({
	imports: [TypeOrmModule.forFeature([User])],
	controllers: [UserController],
	providers: [UserService],
	// 将 UserService 暴露出去
	exports: [UserService]
})
export class UserModule {}
